<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分类')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select id="c-pid" data-rule="required" class="form-control"  name="row[fenlei_id]">
                <option  value="0" >选择分类</option>
                {foreach name="parentList" item="vo"}
                <option  value="{$vo.id}" {in name="key" value=""}selected{/in}  {in name="0" value="$vo.pid"}disabled{/in}>{$vo.title}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Path_imgimage')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-path_imgimage" data-rule="required" class="form-control" size="50" name="row[path_imgimage]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-path_imgimage" class="btn btn-danger faupload" data-input-id="c-path_imgimage" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-path_imgimage"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-path_imgimage" class="btn btn-primary fachoose" data-input-id="c-path_imgimage" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-path_imgimage"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-path_imgimage"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                <label ><input id="row-shiping1" name="row[type]" type="radio" value="1" checked /> 图片</label>
                <label ><input id="row-shiping2" name="row[type]" type="radio" value="2" /> 视频</label>
            </div>

        </div>
    </div>

    <div class="form-group" id="zhu1">
        <label class="control-label col-xs-12 col-sm-2">{:__('图片组')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-zhu_images"  class="form-control" size="50" name="row[zhu_images]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-zhu_images" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-zhu_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-zhu_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-zhu_images" class="btn btn-primary fachoose" data-multiple="true" data-input-id="c-zhu_images" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-zhu_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-zhu_images"></ul>
        </div>
    </div>

    <div class="form-group" id="zhu2" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('视频组')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-zhu_images2"  class="form-control" size="50" name="row[zhu_shiping_images]" type="text" value="">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-zhu_images2" class="btn btn-danger faupload" data-multiple="true" data-input-id="c-zhu_images2" data-mimetype="mp4" data-multiple="false" data-preview-id="p-zhu_images2"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-zhu_images2" class="btn btn-primary fachoose" data-multiple="true" data-input-id="c-zhu_images2" data-mimetype="mp4/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-zhu_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-zhu_images2"></ul>
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_shopdata')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="isShopdataList" item="vo"}
            <label for="row[is_shopdata]-{$key}"><input id="row[is_shopdata]-{$key}" name="row[is_shopdata]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="statusList" item="vo"}
                <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-price" class="form-control" step="0.01" name="row[price]" type="number" value="0.00">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
